import request from '@/utils/request'

// 查询折扣活动列表
export function listDiscount(query) {
  return request({
    url: '/store/discount/list',
    method: 'get',
    params: query
  })
}


// 同步折扣活动
export function syncDiscount(query) {
  return request({
    url: '/store/discount/sync',
    method: 'post',
    data: query
  })
}

// 修改折扣活动
export function updateDiscount(data) {
  return request({
    url: '/store/discount',
    method: 'put',
    data: data
  })
}


